import {ALL_CATEGORY_ITEM} from '@/constants/index.js';

export default {
  namespaced: true,
  state: () => ({
    currentCategory: ALL_CATEGORY_ITEM,
    searchText: '',
    routeType: 'none',
  }),

  mutations: {
    changeCurrentCategory(state, category) {
      state.currentCategory = category;
    }, 

    changeSearchText(state, text) {
      state.searchText = text;
    },
    changeRouteType(state, type) {
      state.routeType = type;
    }
  },
};
